﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace webtest
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            //调用控制台作为宿主的wcf
            WCFHost_Console.UserClient user = new WCFHost_Console.UserClient();
           Label1.Text= user.ShowName("张三");
        }

        protected void Button2_Click(object sender, EventArgs e)
        {
            //调用winfrom作为宿主的wcf
            WCFHost_Winfrom.UserClient user = new WCFHost_Winfrom.UserClient();
            Label1.Text = user.ShowName("李四");
        }

        protected void Button3_Click(object sender, EventArgs e)
        {
            //调用was作为宿主的wcf
            WCFHost_WAS.UserClient user = new WCFHost_WAS.UserClient();
            Label1.Text = user.ShowName("王五");

        }
    }
}